add /sbin to the $PATH for debian's ldconfig.
authorVincent Hanquez <vincent@xensource.com>
Tue, 20 Feb 2007 12:22:40 +0000 (12:22 +0000)
committerVincent Hanquez <vincent@xensource.com>
Tue, 20 Feb 2007 12:22:40 +0000 (12:22 +0000)
use ldconfig -p instead of -v that doesn't require root privilege to work.

tools/check/check_zlib_lib

index 92d879cedab99ea66af163184f953a2d5b0e303d..4e7282f618cdb4c58f0d62abc11d96e33b6689cc 100755 (executable)
@@ -3,8 +3,10 @@
 
 RC=0
 
+PATH=/sbin:$PATH
+
 set -e
-ldconfig -v 2>&1 | grep -q libz.so || RC=1
+ldconfig -p 2>&1 | grep -q libz.so || RC=1
 
 if test ${RC} -ne 0; then
        echo